# Author    : CoffeeChicken
# Date      : 2020-10-09 16:34
# Function  : 演示 生成验证码

from captcha.image import ImageCaptcha

# 新建一个ImageCaptcha对象
img = ImageCaptcha()

image = img.generate_image("this")
image = img.create_noise_dots(image, "red", 5)

image.show()
image.save("this.jpg")

